package logic.login;

import org.game.db.bean.Player;
import org.script.IScript;
import org.script.ScriptArgs;

import com.xiaoleilu.hutool.log.Log;
import com.xiaoleilu.hutool.log.LogFactory;

/**
 * 登录成功预留处理脚本,方便修复各种线上bug
 */
public class LoginSuccessScript implements IScript {
     private final static Log log = LogFactory.get(LoginSuccessScript.class);

    @Override
    public void init() {

    }

    @Override
    public void destroy() {

    }

    @Override
    public Object call(Object arg) {
        ScriptArgs args = (ScriptArgs) arg;
        Player player = (Player)args.get(ScriptArgs.Key.PLAYER);
        log.info("------登录成功------player=["+player.getName()+":"+player.getId()+"]");
        return null;
    }
}
